package com.ruoyi.ap.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.stereotype.Service;
import com.ruoyi.ap.mapper.CertifiedMapper;
import com.ruoyi.ap.domain.Certified;
import com.ruoyi.ap.service.ICertifiedService;

import javax.annotation.Resource;

/**
 * 认证情况Service业务层处理
 * 
 * @author HuaQP
 * @date 2023-10-03
 */
@Service
public class CertifiedServiceImpl implements ICertifiedService 
{
    @Resource
    private CertifiedMapper certifiedMapper;

    /**
     * 查询认证情况
     * 
     * @param id 认证情况主键
     * @return 认证情况
     */
    @Override
    public Certified selectCertifiedById(Long id)
    {
        return certifiedMapper.selectCertifiedById(id);
    }

    /**
     * 查询认证情况列表
     * 
     * @param certified 认证情况
     * @return 认证情况
     */
    @Override
    public List<Certified> selectCertifiedList(Certified certified)
    {
        return certifiedMapper.selectCertifiedList(certified);
    }

    /**
     * 新增认证情况
     * 
     * @param certified 认证情况
     * @return 结果
     */
    @Override
    public int insertCertified(Certified certified)
    {
        certified.setCreateTime(DateUtils.getNowDate());
        return certifiedMapper.insertCertified(certified);
    }

    /**
     * 修改认证情况
     * 
     * @param certified 认证情况
     * @return 结果
     */
    @Override
    public int updateCertified(Certified certified)
    {
        certified.setUpdateTime(DateUtils.getNowDate());
        return certifiedMapper.updateCertified(certified);
    }

    /**
     * 批量删除认证情况
     * 
     * @param ids 需要删除的认证情况主键
     * @return 结果
     */
    @Override
    public int deleteCertifiedByIds(Long[] ids)
    {
        return certifiedMapper.deleteCertifiedByIds(ids);
    }

    /**
     * 删除认证情况信息
     * 
     * @param id 认证情况主键
     * @return 结果
     */
    @Override
    public int deleteCertifiedById(Long id)
    {
        return certifiedMapper.deleteCertifiedById(id);
    }
}
